﻿@using OBUCare.Web.Infrastructure
@using OBUCare.Core.BL
@using OBUCare.Core.DataAccess;
@{
    ObuDropDownListHlper ddlHelper = new ObuDropDownListHlper();

    //var operatorInfo = UIUtility.GetCurrentUser();

    //var menuNames = ViewData["menuName"];

    //string AgentNo = UIUtility.getAgentByModule(operatorInfo, menuNames.ToString());
}
@using (Html.BeginForm("ListPartsStock", "Report", FormMethod.Post))
{
    <table width="100%">
        <tr>
            <td align="center" colspan="7">
                <span class="pTitle">元器件库存统计</span>
            </td>
        </tr>
        <tr>
            <td style="width: 10%; text-align: right">
                统计日期：
            </td>
            <td style="width: 20%; text-align: left">
                @Html.Telerik().DatePicker().Name("sDate").HtmlAttributes(new { @style = "width:150px;" }).OpenOnFocus(true).ShowButton(false)
            </td>
            <td style="width: 10%; text-align: right">
                营业厅类别：
            </td>
            <td style="width: 10%; text-align: left">
              
                @Html.Telerik().DropDownList().Name("AgentType").HtmlAttributes(new { @style = "width:160px;" }).BindTo(ddlHelper.GetAgentTypes(UIConstants.AllItems, false, "", new KeyValuePair<string, string>(UIConstants.AllItems, UIConstants.AllItems))).CascadeTo("Agent")
            </td>
            <td style="width: 10%; text-align: right">
                营业厅：
            </td>
            <td style="width: 20%; text-align: left">              
                @Html.Telerik().DropDownList().Name("Agent").HtmlAttributes(new { @style = "Width:180px;" }).DataBinding(binding => binding.Ajax().Select("_GetAgent", "RepairOrders", new { AgentNo = "" }))
            </td>
            <td style="width: 10%; text-align: center">
                <input type="submit" value="查询" id="btnSearch" />
            </td>
        </tr>
    </table>      
}
@{
    ddlHelper.Dispose();    
}
